package com.java.zhuiyun.api.propmgt.service;

import com.java.zhuiyun.api.propmgt.entity.PropMgt;
import com.java.zhuiyun.api.propmgt.model.PropModel;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @InterfaceName propMgtService
 * @Description TODO
 * @Author wuwan
 * @Date 2023/9/13 10:09
 **/
public interface PropMgtService {
    /*
    * @Author wuwan
    * @Description 道具分页查询
    * @Date 2023/9/13 10:29
    * @Return
    * @param null
    */
    CommonResult selectProp(PageRequest pageRequest);
    /*
    * @Author wuwan
    * @Description 道具添加
    * @Date 2023/9/13 10:40
    * @Return
    * @param null
    */
    CommonResult addProp(MultipartFile file, PropMgt propMgt);
    /*
    * @Author wuwan
    * @Description 道具修改
    * @Date 2023/9/13 16:01
    * @Return
    * @param null
    */
    CommonResult updateProp(MultipartFile file, PropMgt propMgt);
    /*
    * @Author wuwan
    * @Description 道具状态修改
    * @Date 2023/9/13 16:01
    * @Return
    * @param null
    */
    CommonResult updateFlag(PropMgt propMgt);

    List<PropModel> userSelectProp(Integer userId);

    /**
     * @Author 杨友朋
     * @Description TODO 使用道具
     * @Date 2023/10/16 14:12
     * @Return CommonResult
     * @param userId,propId
     */
    CommonResult userUseProp(Integer userId, Integer propId);

    CommonResult userAddProp(Integer userId, Integer propId);
}
